package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * 装箱单明细
 *
 * @author lenovo
 */
@Entity(name = "T_BIZ_PACKINGLIST_DETAILED")
public class PackingListDetailed implements Serializable {

    private static final long serialVersionUID = 205859423732450738L;

    @Id
    @Column(name = "ID_")
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    private String id;

    /**
     * 商品名称
     */
    @Column(name = "NAME_")
    private String name;

    /**
     * 规格(客户手填)
     */
    @Column(name = "KEY_ELEMENTS_")
    private String key_elements;

    /**
     * 件数
     */
    @Column(name = "GOODS_NUMBER_")
    private String goods_number;

    /**
     * 成交数量(旧)
     */
    @Column(name = "COUNT_")
    private String count;

    /**
     * 毛重
     */
    @Column(name = "GOODS_GROSS_WEIGHT_")
    private String goods_gross_weight;

    /**
     * 净重
     */
    @Column(name = "GOODS_NET_WEIGHT_")
    private String goods_net_weight;

    /**
     * 装箱单明细备注
     */
    @Column(name = "PACKINGLIST_REMARK_")
    private String packinglist_remark;

    /**
     * 包装种类
     */
    @Column(name = "GOODS_PACKAGE_")
    private String goods_package;

    /**
     * 商品Commodity
     */
    @OneToOne
    @JoinColumn(name = "COMMODITY_ID_")
    private Commodity commodity;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKey_elements() {
        return key_elements;
    }

    public void setKey_elements(String key_elements) {
        this.key_elements = key_elements;
    }

    public String getGoods_number() {
        return goods_number;
    }

    public void setGoods_number(String goods_number) {
        this.goods_number = goods_number;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getGoods_gross_weight() {
        return goods_gross_weight;
    }

    public void setGoods_gross_weight(String goods_gross_weight) {
        this.goods_gross_weight = goods_gross_weight;
    }

    public String getGoods_net_weight() {
        return goods_net_weight;
    }

    public void setGoods_net_weight(String goods_net_weight) {
        this.goods_net_weight = goods_net_weight;
    }

    public String getPackinglist_remark() {
        return packinglist_remark;
    }

    public void setPackinglist_remark(String packinglist_remark) {
        this.packinglist_remark = packinglist_remark;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public String getGoods_package() {
        return goods_package;
    }

    public void setGoods_package(String goods_package) {
        this.goods_package = goods_package;
    }
}
